efi_loader: Fix disk dp's for pre-DM/legacy devices
authorRob Clark <[email protected]>
Sun, 8 Oct 2017 15:33:08 +0000 (11:33 -0400)
committerAlexander Graf <[email protected]>
Mon, 9 Oct 2017 05:00:38 +0000 (07:00 +0200)
commit77511b3b4be449f1547cd97ec6dde780ef589d84
tree17703f04c94d1c2d03159e932f698fbb65cb317f
parent1a2c8d2f609237664fcda944c251ce693e4366f5
efi_loader: Fix disk dp's for pre-DM/legacy devices

This fixes an issue with OpenBSD's bootloader, and I think should also
fix a similar issue with grub2 on legacy devices.  In the legacy case
we were creating disk objects for the partitions, but not also the
parent device.

Reported-by: Jonathan Gray <[email protected]>
Signed-off-by: Rob Clark <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>
lib/efi_loader/efi_disk.c